{include file="public/head" /}
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">后台管理</a>
        <a href="">物业管理系统</a>
        <a>
          <cite>合同管理</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="#">
          
          
         
          
          <input type="text" name="owner_phone"  placeholder="业主电话" autocomplete="off" class="layui-input" value="{if isset($owner_phone)}{$whereroom.owner_phone}{/if}">
          
         
          <input class="layui-input" placeholder="开始时间" name="gmt_payment_start" id="start" {if isset($gmtstart)}value="{$gmtstart}"{/if}>
          <input class="layui-input" placeholder="结束时间" name="gmt_payment_end" id="end" {if isset($gmtend)}value="{$gmtend}"{/if}>
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
        
        <button class="layui-btn " onclick="x_admin_show('合同添加','{:url('admin/contract/contractAdd')}',800,700)"><i class="layui-icon"></i>合同添加</button>
        
       
       
       
       
        <span class="x-right" style="line-height:40px">账单总金额：   元 &nbsp;&nbsp;&nbsp;&nbsp; 共有数据：   条</span>
      </xblock>
      <table class="layui-table"  id="table">
        <thead>
          <tr>
            <!--<th style="text-align: center; font-size: 16px;width:16px">
              <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>-->
            <th style="text-align: center; font-size: 16px;">物业</th>
            <th style="text-align: center; font-size: 16px;">小区名称</th>
           
            <th style="text-align: center; font-size: 16px;">供货商</th>
            <th style="text-align: center; font-size: 16px;width:40%">内容</th>
            <th style="text-align: center; font-size: 16px;">开始时间</th>
            <th style="text-align: center; font-size: 16px;">结束时间</th>
            <th style="text-align: center; font-size: 16px;">备注</th>
            <th style="text-align: center; font-size: 16px;">操作</th>
            </tr>
        </thead>
        <tbody>
          {foreach $list as $val}
          <tr>
            <!--<td style="text-align: center;">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$val.id}'><i class="layui-icon">&#xe605;</i></div>
            </td>-->
            <td style="text-align: center;">{$val.property_name}</td>
            <td style="text-align: center;">{$val.community_name}</td>
            <td style="text-align: center;">{$val.supplier_name}</td>
            <td style="text-align: center;">{$val.con}</td>
            <td style="text-align: center;">{$val.start_time|date="Y-m-d H:i",###}</td>
            <td style="text-align: center;">{$val.end_time|date="Y-m-d H:i",###}</td>
            <td style="text-align: center;">{$val.remark}</td>
            <td class="td-manage" style="text-align: center;">
              
             
				
            </td>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
          
        </div>
      </div>

    </div>
    <script>
      layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
          ,format: 'yyyy-MM-dd HH:mm:ss'
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
          ,format: 'yyyy-MM-dd HH:mm:ss'
        });
      });

  </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>